package cn.edu.cqut.test0416;

public class Test2 {
	public static void main(String[] args) {
		Outer1.method().show();// 要求输出结果为"HelloWorld"
	}
}

interface Inter {
	void show();
}

class Outer1 {
	// 补齐代码
	public static Inter method()
	{
		return new Inter()
		{
			@Override
			public void show() {
				System.out.println("HelloWorld");
			}
		};
	}
}
